package com.hgyc.mom.wms.enums;

/**
 * 来料入库明细状态字典类
 * 自动生成的枚举类，请勿手动修改

 * @author fwj
 * @since 2025-09-29 17:42:02
 * @version 1.0
 **/
public enum PurchaseReceiptDetailStatusEnum {
    SAVE("save", "保存"),
    PARTIAL_RECEIVE("partial_receive", "部分收货"),
    RECEIVED("received", "已收货"),
    TO_INSPECT("to_inspect", "待送检"),
    INSPECTED("inspected", "已送检"),
    CLOSE("close", "已关闭")
    ;

    private final String value;
    private final String label;

    PurchaseReceiptDetailStatusEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    public static PurchaseReceiptDetailStatusEnum of(String value) {
        if (value == null) {
            return null;
        }
        for (PurchaseReceiptDetailStatusEnum item : PurchaseReceiptDetailStatusEnum.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.label;
    }
}

